Okay, so in today's lesson we are going to have a look at how to add images into your game.
So there are two methods to add images into your game.
You can either use decals or textures.
Today we're going to be having a look at decals.
And next lesson we'll have a look at textures and kind of just compare the two and see which ones be
different and which one is the best to use in what cases.
So in order to add an image into your game, we are just going to be having a look at the moment at
how to add them onto parts.
Okay, you can add images into your game different ways.
They'll be discussed later on in the course though.
So let's add in a part and let's size up a bit so it's a bit easier to see.
Okay, so decals are one method to add objects onto parts.
The decal is an object that you add in, and the decal goes inside of the part, which you want the
image to be displayed on.
What I mean by that is if I want the image to be displayed on this part, I need to add the decal inside
of this part.
So I'm going to go over to the part.
Click the plus icon search.
Up Dcao decals and left click on that and then add the decal inside of the part.
Now this is probably one of the first times that we've looked at stuff apart from parts.
Basically, parts are really simple to start off with, but we know we know most things about parts
now, and we're moving on a bit to look at some different areas.
So in order to add an image onto here, you need what's called a image ID.
Now there are two ways to get an image ID you can either find one that's already been made, or upload
and make your own one current.
At the moment we're just going to be looking at using existing ones, but later on in the course you
will learn how to upload and create them yourself.
So we can do this actually by going into the toolbox.
So click on my toolbox from last lesson.
Remember you hopefully be in the properties section.
Left click on Go to Toolbox and where it says models at the top.
Here we're going to change this to say images.
And now we get ups and images for us to use.
So we can search up what image we want to add in.
Let's search up I don't know um background and see what comes up.
Um.
Let's use this sunny beach background.
So we left click on this and as she adds a decal into our game now we don't we're not going to use this
decal.
The only bit we need is this number here.
So there's a number here 1688.
And that one there.
So what we're going to do is highlight that just by holding down left click.
And then letting go and copy that just by copying to your clipboard and paste that into the texture
property of your decal.
So paste that there, press enter and it will then load up for you there.
Okay.
And once you've done that we can just select that decal and just delete it.
We don't want that anymore.
Okay.
Um this is the number.
This number here is basically a unique number which represents that image.
Okay.
So if you are wanting to use an image from a toolbox, the only thing you need is that image that that
number.
Once you've got that number, you can just delete whatever object or decal added into your game.
So you can see though that it's not in the correct.
It's not gone in the correct face.
I want it to go on to this face here.
Oh, actually it does it that way for us.
When you hover over it, it does it that method there, that could work as well.
But, um, I would show you the different method, which would be to use a property for it.
So the face property, if we click on that and click the drop down arrow, it shows you what faces the
image can be displayed on.
So it might take a bit of trial and error to see which ones are which.
Um, but it's going to be the left face here is being selected for us there.
Okay, let's have a look at some other properties to this image.
Some are new properties like texture, which I've already explained.
Other ones are we've already looked at with parts like transparency for example.
Color three just allows you to add a color tint onto the image so you can make this look more red or
make it look a bit brighter perhaps.
Completely up to you.
I'm not going to add one in for that one, but, um, you can if it's suitable.
Transparency is how visible this decal is.
So again, putting it to one is completely invisible.
Um, and then put it to 0.5 and it's half transparent, that kind of same thing.
Um, just give it that one for now.
We're going to come back on to it.
The name.
Um, again, we know about we know about how names and parents work.
We're just going to call this decal for now, but you can change the name and change the parent if you'd
like it to be displayed on a different object, for example, if we put it inside of a base plate.
Um, if we zoom out, maybe and change it to the top.
It's now put it on the entire base plate, which is quite cool, but we're going to put it back onto
the part just by holding down and going over to the part and just letting go, and let's change it back
to the left face.
Cool.
So the other property that I just skipped over is called z index.
Z index is an interesting property.
Basically how it how z index.
Z index works is if there are two decals or two images on the same face, it controls which one is displayed
in front of the other one.
So if I went into the toolbox and got another image, let's say, um, this gray cloud background.
Copy the number of the texture ID.
Delete that, delete that decal and add in our own one.
Change this to the left face and paste in our texture.
You'll notice that the our first one, the beach background, has been displayed on top of the cloud
one.
However, if we were to increase the number of the z index to two, it now displays in front.
So basically the higher the z index, the further forward it will be.
So if you've got two decals and you want one to display in front of the other one, that needs to have
a bigger number than the one that's behind it basically.
Okay.
And that's basically it for decals.
Okay.
So you can go for toolbox.
And there's so many images for you to choose from.
So there's a lot of images you to choose from in the toolbox.
And and this will be really good.
Um, to add some images into your game.
The only thing I'd suggest is don't use it for things like bricks and stuff like that, because we've
we have got materials for those.
So if you do want, um, a brick texture, for example, you can just change the material property of
the part.
So remember to do that.
Select the part, go to properties.
It's the material property.
And you can change it to brick like that there.
Okay.
So don't bother using it for things like that.
Um but yeah so they are decals.
And next lesson we are going to have a look at what textures are.
And we're also going to explain the difference between decals and textures and which one would be best
for you to use.